gtkswitch.c: Fix Build on C89 Compilers
authorChun-wei Fan <fanchunwei@src.gnome.org>
Tue, 3 Mar 2015 04:14:24 +0000 (12:14 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Tue, 3 Mar 2015 04:14:24 +0000 (12:14 +0800)
This file now uses round(), which was not available until C99, so include
fallback-c89.c instead of math.h, which includes math.h and does a fallback
implementation of round().

gtk/gtkswitch.c

index 1f5692c8bc8c4faf0135b2419ae95ead424f7911..1ab12b5d92a50bbdaa96a1140f0959dc49f16360 100644 (file)
@@ -53,7 +53,7 @@
 #include "gtkactionhelper.h"
 #include "gtkwidgetprivate.h"
 
-#include <math.h>
+#include "fallback-c89.c"
 
 #define DEFAULT_SLIDER_WIDTH    (36)